<%@LANGUAGE="JAVASCRIPT" CODEPAGE="65001"%>
<!--#include file="conn.asp"-->
<%
if(Session("passed")!=null&&Session("passed"))
{
	var rs=Server.CreateObject("adodb.recordset");
	var sqlstr="select * from stuinfo,userinfo where  stuinfo.stu_id=userinfo.user_id order by stu_addtime desc";
	rs.open(sqlstr,conn,1);
	rs.movefirst();
	Response.Write("<?xml version='1.0' encoding='utf-8'?>");
	Response.Write("<recordes>");
	while(!rs.EOF)
	{
		Response.Write("<recorde>");
		Response.Write("<stuname>"+rs("user_name")+"</stuname>");
		Response.Write("<stuphone>"+rs("stu_phone")+"</stuphone>");
		if(rs("stu_phone2")==null||rs("stu_phone2")==""||String(rs("stu_phone2"))=="null")
		{
			Response.Write("<stuphone2/>");
		}
		else
		{
			Response.Write("<stuphone2>"+rs("stu_phone2")+"</stuphone2>");
		}
		Response.Write("<stuqq>"+rs("stu_qq")+"</stuqq>");
		Response.Write("<stuemail>"+rs("stu_email")+"</stuemail>");
		Response.Write("<stucompany>"+rs("stu_company")+"</stucompany>");
		Response.Write("<stulocat>"+rs("stu_locat")+"</stulocat>");
		Response.Write("<addtime>"+rs("stu_addtime")+"</addtime>");
		Response.Write("<modify>"+rs("stu_modify")+"</modify>");
		Response.Write("</recorde>");
		rs.movenext();
	}
	Response.Write("</recordes>");

	rs.close();
	conn.close();
	delete rs;
	delete conn;
}
else
{
	Response.Write("<?xml version='1.0' encoding='utf-8'?>");
	Response.Write("<!--you need login the system first-->");
	Response.Write("<recordes/>");
}
%>
